﻿<!DOCTYPE html>
<html>
<head>
    <title>JS Arrays Exercise 1</title>
    <link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
    <h1>Allocates array of 20 integers and initializes each element by its index multiplied by 5. Print the obtained array on the console.</h1>
    <script>
        var arr = new Array(20);

        for (var i = 0; i < arr.length; i++)
        {
            arr[i] = i * 5;
        }
        console.log(arr.join(", "));
    </script>
</body>
</html>
